goog.require('goog.dom');
goog.require('goog.ui.Control');
goog.require('goog.ui.Button');
goog.require('goog.events');



var TableContentPanel = Class.create(Widget,{
	
	
	
	initialize : function($super){
		$super();
		
	},
	
	init : function($super,o){
		$super(o);
//		this.parentElement = o['parentElement'];
//		this.measure = "px";
//		this.width = o[DataConstants.WIDTH] + this.measure;
//		this.height = o[DataConstants.HEIGHT] + this.measure;
		this.bodyPanelName = o['divName'];
//		this.title = "hello";//o[DataConstants.TITLE];
//		this.headPanel  	= goog.dom.createDom('div', {'style': 'float:left;width:99%;height:20px;-moz-border-radius-topleft:5px;-moz-border-radius-topright:5px;background-color:#22476F;padding:2px;','id':DomConstants.HEADER_ICON_PANEL},this.title);
//		this.bodyPanel  	= goog.dom.createDom('div', {'style': 'float:left;border:4px solid #22476F;width:98%;','id':this.bodyPanelName});
//		
//		this.contentPanel = goog.dom.createDom('div', {'style': 'width:'+ this.width +';height:'+this.height+';border:1px solid white;float:left;-moz-border-radius-topleft:10px;-moz-border-radius-topright:10px;padding:5px;-color:white','id':'123'},
//		this.headPanel,this.bodyPanel);
		
		
	},
	
	setTable: function (tbl,data) {
		this.table = tbl;
		this.table.setHeight(this.bodyHeight.replace("px","") -20+"px");
		this.table.drawTable(data);
	},
	
	getContentPanel : function(){
//		return this.contentPanel;
	}
	
});